var App = getApp();

//Page Object
Page({
    data: {
        order: {},
        cids: '',

    },
    //options(Object)
    onLoad: function (options) {
      this.setData({ 'order.id': options.id,})
      this.getData()
    },

    getData() {
        const _this = this
        App.globalData.serviceModel.orderDetail({
            data: {
                id: _this.data.order.id
            }
        }).then(json => {
            json.data.category_group_price = parseFloat(json.data.category_group_price)
            _this.setData({order: json.data})
        })
    }

});